package com.coda.clouddisk.controller.inter;

import com.coda.clouddisk.entity.KeSunAttachment;
import com.coda.clouddisk.entity.KesunReturn;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.net.MalformedURLException;

public interface KeSunAttachmentController {

    /**
     * 文件上传
     */
    KesunReturn uploadFile(KeSunAttachment keSunAttachment, MultipartFile file);

    /**
     * 文件下载
     */
    ResponseEntity<Resource> downloadFile(String id) throws MalformedURLException;

}
